package com.example.Service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.dao.PopMapper;
import com.example.pojo.Pop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PopServiceImpl extends ServiceImpl<PopMapper, Pop> {
    @Autowired
    private PopMapper popMapper;

    public List<Pop> getContentByPopId(String title) {
        QueryWrapper<Pop> queryWrapper = new QueryWrapper();
        queryWrapper.eq("title",title);
        return popMapper.selectList(queryWrapper);
    }
}
